<?php
require_once('configure.php'); 
$query = "SELECT DISTINCT(kodepos) FROM kodepos 
WHERE kodepos  LIKE '{$_GET['q']}%' 
AND kelurahan ='".urldecode(strtoupper($_GET['kelurahan']))."'
GROUP BY kodepos"; 
$res = my_query($query);
 
while( $rw=my_fetch_array($res) ){
	 echo strtoupper ($rw['kodepos'] )."\n";
}
exit;